package com.tools.scanner.utils

import android.content.Context

class ResourceUtil {

    companion object {
        fun getString(context: Context, name: String): String {
            val resId = context.resources.getIdentifier(name, "string", context.packageName)
            return try {
                context.resources.getString(resId)
            } catch (e: Exception) {
                ""
            }
        }
    }
}